import requests

res = requests.get('https://www.zhihu.com/api/v4/search_v3', headers={
    'user-agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/142.0.0.0 Safari/537.36',
    'referer': 'https://www.zhihu.com/search?',
}, params={
    'gk_version': 'gz-gaokao',
    't': 'general',
    'q': "理想",
    'correction': '1',
    'offset': '0',
    'limit': '20',
    'filter_fields': '',
    'lc_idx': '0',
    'show_all_topics': '0',
    'search_source': 'History',
}, cookies={
    'z_c0': '2|1:0|10:1764059614|4:z_c0|92:Mi4xX2owRGtBQUFBQUFxaFZRS0M2dHBHeVlBQUFCZ0FsVk4zcmNTYWdDRGh6TTlnb1VYem5xVC1wLVU0SFRacnNkdEdR|8ae7c9cbc8de62e0e50c5f85844a14bf5a8f4f3e1da15de779c049830c408faf',
    # '__zse_ck': '004_FwMT3uuyvZNr6t8QZDSiY=3Il91pU6K74/FYhZ44MV4RjTmpGduhk5dO8P8YbaH4Xo6qK8W3hfRnLFUyNX2MQo3BWBD6f0NBbgcxYXsXK55QVHAx5iFMbzecVHCfHvOv-9eZw9f4gDxgpcA+0kLFyI8SUxVLJdBL4XweXQ5bnEPX0L54buKroY8CvdELmRMRGvvX5KJF96wYZJ07sD3Q7BJNjoZVXh3mLfh+l50sdbzn+VJ7jBqHN2kd2ISkPZCR5',
    # '_xsrf': 'gBsQoRfyoPK6IoHRBmk3msNTPZbUW7Sr',
})
print(res)
